package com.imooc.scala.course04

object SimpleObj {
  def main(args: Array[String]): Unit = {
    val people = new People()
    people.name = "mme"
    print(people.name)
  }
}

class People {
  var name: String = ""
  val age: Int = 10

//  def People(name: String): Unit = {
//    this.name = name
//  }

  def eat(): String = {
    name + "eat..."
  }
}